package com.example.wcdb.upgrade;


import androidx.annotation.NonNull;
import androidx.sqlite.db.SupportSQLiteDatabase;

import com.example.wcdb.BaseMigrate;

public class Migrate1_2 extends BaseMigrate {

    public Migrate1_2(int startVersion, int endVersion) {
        super(startVersion, endVersion);
    }

    @Override
    public void wcdbMigrate(@NonNull SupportSQLiteDatabase database) {
        database.execSQL("ALTER TABLE t_user ADD COLUMN age INTEGER NOT NULL DEFAULT 0");
    }
}
